#
# Copyright 2008 Spencer Davis <SpencerDavis91@gmail.com>
#
# This file is part of Tuxedo.
#
# Tuxedo is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# Tuxedo is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with Tuxedo; if not, see <http://gnu.org/licenses/.>
#

import os
import sys

# Set constants for status
TASK_COMPLETED = 2
TASK_INPROGRESS = 1
TASK_NOTSTARTED = 0

# Set constants for priority
TASK_PRIORITY_HIGHEST = 0
TASK_PRIORITY_HIGH = 1
TASK_PRIORITY_NORMAL = 2
TASK_PRIORITY_LOW = 3
TASK_PRIORITY_LOWEST = 4

class Task:
    """Manages tasks."""
    def __init__(self, name="", priority=TASK_PRIORITY_NORMAL,
                 status=TASK_NOTSTARTED, duedate=()):
        """Initializes values."""
        # Initialize values
        self.name = name
        self.priority = priority
        self.status = status
        self.id = None
        self.duedate = duedate
